﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using Wpf.Ui.Controls;
using Wpf.Ui;

namespace ClientAppraise.Services
{
    public interface IZxContentDialogService : IContentDialogService
    {
        ContentPresenter? EjectContentPresenter(int HashCode);
        void PushContentPresenter(int HashCode, ContentPresenter? contentPresenter);
        void UnSetContentPresenter();
        ContentPresenter? GetContentPresenter(int HashCode);

        Task<ContentDialogResult> ShowProgressLoadingAsync(Action action, string title = "加载中", bool IsIndeterminate = false);
        Task<ContentDialogResult> ShowRingLoadingAsync(Action action, string title = "加载中", bool IsIndeterminate = false);
        void SetLoadingError();
        void CloseLoading();
        void SetLoadingPercent(double percent, string title = "");

        ContentDialog? GetDialog => null;
    }

}
